<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
 	<meta charset="utf-8">
    <meta http-equiv="Content-Type" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="">
    <meta name="author" content="">
 	
    <title>用户登录</title>
    
	<!-- 新 Bootstrap 核心 CSS 文件 -->
	<link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
	
	<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
	<script src="https://cdn.bootcss.com/jquery/2.1.1/jquery.min.js"></script>
	<link rel="stylesheet" href="/market/css/LR.css">

</head>
<body>

	<%@include file="navbar.jsp"%>

	<!--margin:0px auto; 左右居中-->
    <div class=" container my-container" >

		<%--登录表单--%>
		<div class="page-header">
		    <h1>用户登录
		        <a href="reg" ><small>注册</small></a>
		    </h1>
		</div>
	   
     	<form class="form-signin" action="login" method="post">

	        <input type="text" class="form-control"  id="username" name="username" placeholder="手机号" required  autofocus>
	        <input type="password" class="form-control margin10"  id="password" name="password" type="password"   placeholder="密码" required >
	        <button class="btn btn-lg btn-primary btn-block margin10" type="submit"
					id="submit_btn">登录</button>
      
      	</form>

		<div class="alert alert-warning error-alert" id="error_show">
			<a href="#" class="close" data-dismiss="alert">
				&times;
			</a>
			<p id="error_show_p" style="color: red"></p>
		</div>
			<%--返回登录信息--%>
			<%
				String s = (String)request.getAttribute("login_msg");
				if (s!=null){%>
					<script>alert("<%=s%>")</script>
			<%}%>

    </div>

    </p>

	<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
	<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
	<script src="/market/js/LoginChecked.js"></script>
	<script src="/market/js/common.js"></script>
</body>
</html>